home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / VB--_HTML 198205202001.psc / VBHelpCompiler / Test Project / Test / frmTest.frm (.txt) next >
Encoding:
Visual Basic Form  |  2001-05-06  |  3.1 KB  |  110 lines

  1. VERSION 5.00
  2. Object = "*\A..\Project1.vbp"
  3. Begin VB.Form frmTest 
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   6720
  6.    ClientLeft      =   60
  7.    ClientTop       =   375
  8.    ClientWidth     =   8145
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   6720
  11.    ScaleWidth      =   8145
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin prjNSocks.Client Client 
  14.       Height          =   390
  15.       Left            =   4920
  16.       TabIndex        =   7
  17.       Top             =   0
  18.       Width           =   390
  19.       _ExtentX        =   688
  20.       _ExtentY        =   688
  21.    End
  22.    Begin VB.CommandButton Command4 
  23.       Caption         =   "Send To &Client"
  24.       Height          =   375
  25.       Left            =   4920
  26.       TabIndex        =   6
  27.       Top             =   1080
  28.       Width           =   1695
  29.    End
  30.    Begin VB.CommandButton Command3 
  31.       Caption         =   "Send To &Server"
  32.       Height          =   375
  33.       Left            =   4920
  34.       TabIndex        =   5
  35.       Top             =   480
  36.       Width           =   1695
  37.    End
  38.    Begin VB.CommandButton Command2 
  39.       Caption         =   "&Disconnect"
  40.       Height          =   375
  41.       Left            =   2520
  42.       TabIndex        =   4
  43.       Top             =   0
  44.       Width           =   2295
  45.    End
  46.    Begin VB.CommandButton Command1 
  47.       Caption         =   "&Connect"
  48.       Height          =   375
  49.       Left            =   0
  50.       TabIndex        =   3
  51.       Top             =   0
  52.       Width           =   2295
  53.    End
  54.    Begin VB.TextBox TextIn 
  55.       Height          =   375
  56.       Left            =   0
  57.       TabIndex        =   2
  58.       Text            =   "Text2"
  59.       Top             =   480
  60.       Width           =   4815
  61.    End
  62.    Begin VB.TextBox TextOut 
  63.       Height          =   375
  64.       Left            =   0
  65.       TabIndex        =   1
  66.       Text            =   "Text1"
  67.       Top             =   1080
  68.       Width           =   4815
  69.    End
  70.    Begin prjNSocks.Server Server 
  71.       Height          =   390
  72.       Left            =   6240
  73.       TabIndex        =   0
  74.       Top             =   0
  75.       Width           =   390
  76.       _ExtentX        =   688
  77.       _ExtentY        =   688
  78.    End
  79. Attribute VB_Name = "frmTest"
  80. Attribute VB_GlobalNameSpace = False
  81. Attribute VB_Creatable = False
  82. Attribute VB_PredeclaredId = True
  83. Attribute VB_Exposed = False
  84. Private Sub Client_DataArrival(ByVal Data As String)
  85. TextIn.Text = Data
  86. End Sub
  87. Private Sub Command1_Click()
  88. Client.LocalPort = 1192
  89. Client.RemotePort = 1193
  90. Client.Protocol = sckTCPProtocol
  91. Server.LocalPort = 1193
  92. Server.Protocol = sckTCPProtocol
  93. Client.Connect
  94. End Sub
  95. Private Sub Command2_Click()
  96. Client.Disconnect
  97. End Sub
  98. Private Sub Command3_Click()
  99. Client.SendData TextIn.Text
  100. End Sub
  101. Private Sub Command4_Click()
  102. Server.SendData 1, TextOut.Text
  103. End Sub
  104. Private Sub Form_Load()
  105. MsgBox Client.LocalHostName & "|" & Client.LocalIP
  106. End Sub
  107. Private Sub Server_DataArrival(ByVal Index As Integer, ByVal Data As String)
  108. TextOut.Text = Data
  109. End Sub
  110.